<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">ios激活数据查询</div>
    <div class="main_soso">
    <form action="/ios/search_ios_daily.shtml">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td width="19" height="30" align="center"><img src="../images/clean_011.gif" width="16" height="16" /></td>
		    <td>
		   广告产品：
		     <select name="click.appId">
		         <option value="">请选择...</option>
		         <c:forEach items="${adlist}" var="o">
		            <c:if test="${!empty o.appId}">
		               <option value="${o.appId}" <c:if test="${o.appId==click.appId}">selected="selected"</c:if>>${o.packName} ${o.appId}</option>
		            </c:if>
		         </c:forEach>
		     </select>
		     渠道:<select name="click.channel">
		         <option value="">请选择...</option>
		         
		         <c:forEach items="${channellist}" var="o">
		             <c:if test="${!empty o.channel}">
		             		<option value="${o.channel}" <c:if test="${o.channel==click.channel}">selected="selected"</c:if>>${o.channelName} ${o.channel}</option>
		             </c:if>
		         </c:forEach>
		     </select>
		<input id="textfield" class="date_type" type="text" onclick="new Calendar().show(this);" readonly="readonly" value="<fmt:formatDate value="${beginDate}" pattern="yyyy-MM-dd"/>" name="beginDate">
		结束时间:
		<input id="textfield" class="date_type" type="text" onclick="new Calendar().show(this);" readonly="readonly" value="<fmt:formatDate value="${endDate}" pattern="yyyy-MM-dd"/>" name="endDate">
		      </td>
		    <td align="left">
		      <input name="input7" type="submit" class="input01" value="搜索" /></td>
		  </tr>
		</table>
    </form>
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="20%">产品广告</th>
          <th width="10%">渠道</th>
          <th width="10%">日期</th>
          <th width="10%">点击数</th>
          <th width="10%">激活数</th>
          <th width="10%">回调数</th>
          <th width="10%">转化率</th>
          <th width="10%">回调率</th>
          <th></th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <c:forEach items="${page_list.list}" var="o">
	             <fmt:parseNumber var="o3" value="${o[3]}" pattern="0.00" type="percent" />
	             <fmt:parseNumber var="o4" value="${o[4]}" pattern="0.00" type="percent" />
	             <fmt:parseNumber var="o5" value="${o[5]}" pattern="0.00" type="percent" />
        <tr>
          <td width="20%">${o[0]}</td>
          <td width="10%">${o[1]}</td>
          <td width="10%">${o[2]}</td>
          <td width="10%">${o[3]}</td>
          <td width="10%">${o[4]}</td>
          <td width="10%">${o[5]}</td>
          <td width="10%">
                 <c:choose>
	                <c:when test="${o3!=0}"><fmt:formatNumber pattern="#0.00" value="${(o4/o3)*100}"  ></fmt:formatNumber>%</c:when>
	                <c:otherwise>0.00%</c:otherwise>
	             </c:choose>
          </td>
          <td width="10%">
                 <c:choose>
	                <c:when test="${o4!=0}"><fmt:formatNumber pattern="#0.00" value="${(o5/o4)*100}"  ></fmt:formatNumber>%</c:when>
	                <c:otherwise>0.00%</c:otherwise>
	             </c:choose>
          </td>
          
          <td></td>
        </tr>
      </c:forEach>
    </table>
  </div>
  <app:page></app:page>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/calendar.js"> </script>
<script type="text/javascript">

   function _copy(id){
	   if(confirm('确定复制该条数据?')){
		   window.location="/campaign/copy_pack_info.shtml?id="+id;
	   }
   }
</script>
